package com.dianjing.dianqun.model;

import java.util.Date;
import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;

public class DianPaiContent implements java.io.Serializable {

	@JSONField(serialize = false)
	public static final String UNCHECK = "1";
	@JSONField(serialize = false)
	public static final String CHECKED = "2";
	@JSONField(serialize = false)
	public static final String DIANJING_CHECKED = "0";

	private static final long serialVersionUID = 1L;

	private Integer contentId;

	// 用户ID
	private Integer userId;

	// 创建日期
	private Date createDate;

	// 是否推荐
	private Boolean isRecommend;

	@JSONField(serialize = false)
	// 状态(0:点睛审核 1:审核中;2:审核通过)
	private String status;

	// 总点赞数数 手动封装
	private Long likeTotal;

	// 总评论数 
	private Integer commentTotal;
	
	// 总访问数
	private Integer viewsTotal;

	// 是否置顶（1:是;0:否）
	private Boolean isTop;

	// 文章内容
	private DianPaiContentExt contentExt;
	//作者
	private User user;

	// 内容json
	private String txt;

	// 点赞数
	private List<DianPaiContentLike> likeCount;

	// 评论集合
	private List<DianPaiContentComment> commentList;

	public List<DianPaiContentLike> getLikeCount() {
		return likeCount;
	}

	public void setLikeCount(List<DianPaiContentLike> likeCount) {
		this.likeCount = likeCount;
	}

	public DianPaiContentExt getContentExt() {
		return contentExt;
	}

	public void setContentExt(DianPaiContentExt contentExt) {
		this.contentExt = contentExt;
	}

	public List<DianPaiContentComment> getCommentList() {
		return commentList;
	}

	public void setCommentList(List<DianPaiContentComment> commentList) {
		this.commentList = commentList;
	}

	/**
	 * 
	 * @return content_id
	 */
	public Integer getContentId() {
		return contentId;
	}

	/**
	 * 
	 * @param contentId
	 */
	public void setContentId(Integer contentId) {
		this.contentId = contentId;
	}

	/**
	 * 用户ID
	 * 
	 * @return user_id 用户ID
	 */
	public Integer getUserId() {
		return userId;
	}

	/**
	 * 用户ID
	 * 
	 * @param userId
	 *            用户ID
	 */
	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	/**
	 * 创建日期
	 * 
	 * @return create_date 创建日期
	 */
	public Date getCreateDate() {
		return createDate;
	}

	/**
	 * 创建日期
	 * 
	 * @param createDate
	 *            创建日期
	 */
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	/**
	 * 是否推荐
	 * 
	 * @return is_recommend 是否推荐
	 */
	public Boolean getIsRecommend() {
		return isRecommend;
	}

	/**
	 * 是否推荐
	 * 
	 * @param isRecommend
	 *            是否推荐
	 */
	public void setIsRecommend(Boolean isRecommend) {
		this.isRecommend = isRecommend;
	}

	/**
	 * 状态(0:草稿;1:审核中;2:审核通过;3:回收站)
	 * 
	 * @return status 状态(0:草稿;1:审核中;2:审核通过;3:回收站)
	 */
	public String getStatus() {
		return status;
	}

	/**
	 * 状态(0:草稿;1:审核中;2:审核通过;3:回收站)
	 * 
	 * @param status
	 *            状态(0:草稿;1:审核中;2:审核通过;3:回收站)
	 */
	public void setStatus(String status) {
		this.status = status;
	}

	/**
	 * 总访问数
	 * 
	 * @return views_total 总访问数
	 */
	public Integer getViewsTotal() {
		return viewsTotal;
	}

	/**
	 * 总访问数
	 * 
	 * @param viewsTotal
	 *            总访问数
	 */
	public void setViewsTotal(Integer viewsTotal) {
		this.viewsTotal = viewsTotal;
	}

	/**
	 * 是否置顶（1:是;0:否）
	 * 
	 * @return is_top 是否置顶（1:是;0:否）
	 */
	public Boolean getIsTop() {
		return isTop;
	}

	/**
	 * 是否置顶（1:是;0:否）
	 * 
	 * @param isTop
	 *            是否置顶（1:是;0:否）
	 */
	public void setIsTop(Boolean isTop) {
		this.isTop = isTop;
	}

	public Long getLikeTotal() {
		return likeTotal;
	}

	public void setLikeTotal(Long likeTotal) {
		this.likeTotal = likeTotal;
	}

	public String getTxt() {
		return txt;
	}

	public void setTxt(String txt) {
		this.txt = txt;
	}

	public Integer getCommentTotal() {
		return commentTotal;
	}

	public void setCommentTotal(Integer commentTotal) {
		this.commentTotal = commentTotal;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}